package com.solo.eggsolo.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.solo.eggsolo.entity.Song;
import com.solo.eggsolo.mapper.SongMapper;
import com.solo.eggsolo.service.SongService;
/**
 * 
 * @author Yu
 *
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SongServiceImpl extends BaseServiceImpl<Song> implements SongService{

	@Autowired
	private SongMapper songMapper;
	
	@Override
	public List<Song> findByName(String songName) {
		return songMapper.findByName(songName);
	}
	
	@Override
	public List<Song> findRecommendSong(){
		return songMapper.findRecommendSong();
	}
	
	@Override
	public boolean editRecommendSong(Integer isRecommend,Integer id) {
		return songMapper.editRecommendSong(isRecommend,id);
	}
}